package main.Q1201_1300;

public class Q1231_1240 {
    public static void main(String[] args) {
        System.out.println("Question1231：");
        System.out.println("Question1232：缀点成线");
        System.out.println("Question1233：");
        System.out.println("Question1234：");
        System.out.println("Question1235：");
        System.out.println("Question1236：");
        System.out.println("Question1237：");
        System.out.println("Question1238：");
        System.out.println("Question1239：");
        System.out.println("Question1240：");
    }
}

class Question1232{
    public boolean checkStraightLine(int[][] coordinates) {
        double rangeX=coordinates[1][0]-coordinates[0][0],rangeY=coordinates[1][1]-coordinates[0][1];
        for (int i=2;i<coordinates.length;i++){
            double curX=coordinates[i][0]-coordinates[0][0];
            double curY=coordinates[i][1]-coordinates[0][1];
            if ((rangeX==0&&curX!=0)||(rangeX!=0&&curX==0)) return false;
            else if (rangeX!=0&&curX!=0&&rangeY/rangeX!=curY/curX) return false;
        }
        return true;
    }
}